package net.lahuobao.mall.entity.admin;

import net.lahuobao.export.datasoruce.annotation.ExportField;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/3/29.
 * 油卡回收
 */
public class MallOilCardRecovery implements Serializable {


    @ExportField(title="", isShow = 0, sort=10)
    private Integer id;

    //卡号
    @ExportField(title="油卡卡号", sort=10)
    private String cardNo;

    //司机
    @ExportField(title="司机", sort=20)
    private String driver;

    //车辆
    @ExportField(title="车辆", sort=30)
    private String vehicleNo;

    //订单号
    @ExportField(title="订单号", sort=40)
    private String orderNo;

    //运单号
    @ExportField(title="运单号", sort=41)
    private String waybillNumber;

    //时间
    @ExportField(title="使用时间", sort=42, isTranf = 1, tranfType = 2)
    private Timestamp createTime;

    //货主
    @ExportField(title="货主", sort=50)
    private String  consignor;

    //项目组
    @ExportField(title="项目组", sort=60)
    private String projectName;

    //项目人
    @ExportField(title="项目人", sort=70)
    private String projectUserName;

    //状态
    @ExportField(title="", isShow = 0, sort=80)
    private Integer state;

    //状态名字
    @ExportField(title="属性状态", sort=90)
    private String stateName;

    @ExportField(title="使用状态", sort=100)
    private String useName;

    //上次使用时间
    @ExportField(title="",  isShow = 0,sort=200)
    private Integer lastUseDay;

    @ExportField(title="",  isShow = 0,sort=300)
    private String createStartTime;

    @ExportField(title="", isShow = 0, sort=400)
    private String createEndTime;

    //司机电话号码
    @ExportField(title="", isShow = 0, sort=500)
    private String driverMobile;

    //项目
    @ExportField(title="", isShow = 0, sort=500)
    private String projects;

    //项目人
    @ExportField(title="", isShow = 0, sort=500)
    private String projectUsers;

    @ExportField(title="", isShow = 0, sort=500)
    private Integer isquery;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getVehicleNo() {
        return vehicleNo;
    }

    public void setVehicleNo(String vehicleNo) {
        this.vehicleNo = vehicleNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getWaybillNumber() {
        return waybillNumber;
    }

    public void setWaybillNumber(String waybillNumber) {
        this.waybillNumber = waybillNumber;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getConsignor() {
        return consignor;
    }

    public void setConsignor(String consignor) {
        this.consignor = consignor;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectUserName() {
        return projectUserName;
    }

    public void setProjectUserName(String projectUserName) {
        this.projectUserName = projectUserName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getLastUseDay() {
        return lastUseDay;
    }

    public void setLastUseDay(Integer lastUseDay) {
        this.lastUseDay = lastUseDay;
    }

    public String getCreateStartTime() {
        return createStartTime;
    }

    public void setCreateStartTime(String createStartTime) {
        this.createStartTime = createStartTime;
    }

    public String getCreateEndTime() {
        return createEndTime;
    }

    public void setCreateEndTime(String createEndTime) {
        this.createEndTime = createEndTime;
    }

    public String getStateName() {
        switch (this.state){
            case 0:
                stateName =  "未回收";
                break;
            case 1:
                stateName = "已回收";
                break;
            case 2:
                stateName = "已挂失";
                break;
        }
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getUseName() {
        if(this.lastUseDay <= 30){
            useName = "正常使用";
        }
        if(this.lastUseDay > 30){
            useName = "超过" + this.lastUseDay + "未使用";
        }
        return useName;
    }

    public void setUseName(String useName) {
        this.useName = useName;
    }

    public String getDriverMobile() {
        return driverMobile;
    }

    public void setDriverMobile(String driverMobile) {
        this.driverMobile = driverMobile;
    }

    public String getProjects() {
        return projects;
    }

    public void setProjects(String projects) {
        this.projects = projects;
    }

    public String getProjectUsers() {
        return projectUsers;
    }

    public void setProjectUsers(String projectUsers) {
        this.projectUsers = projectUsers;
    }

    public Integer getIsquery() {
        return isquery;
    }

    public void setIsquery(Integer isquery) {
        this.isquery = isquery;
    }
}

